package com.xcity.game.peakroad.model.response;

import com.xcity.game.combat.attr.CombatAttribute;
import com.xcity.game.combat.attr.CombatAttributeType;

public class PeakRoadBuff {
	public int id;
	public CombatAttributeType type; // buff类型
	public Object value; // buff数值
	
	public PeakRoadBuff(int id, CombatAttribute attr) {
		this.id = id;
		this.type = attr.getType();
//		this.value = attr.getType().format(attr.getValue());
		this.value = attr.getValue() == (int) attr.getValue() ? Integer.valueOf((int) attr.getValue()) : Float.valueOf(attr.getValue());
	}
	
}
